<?php
namespace php\geo\googlemaps;

abstract class MapMarker {
    const SIZE_TINY = "tiny";
    const SIZE_MID = "mid";
    const SIZE_SMALL = "small";

    private $size = "";
    private $color = "";
    private $label = "";
    
    public function __construct() {
        
    }

    public function asString() {
        return sprintf("size:%s|color:%s|label:%s|%s",
        $this->size, $this->color, $this->label
        , $this->getPositionString());
    }
    
    public abstract function getPositionString();

    public function setColor($color) {
        $this->color = $color;
    }

    public function getColor() {
        return $this->color;
    }

    public function setLabel($label) {
        $this->label = $label;
    }

    public function getLabel() {
        return $this->label;
    }

    public function setSize($size) {
        $this->size = $size;
    }

    public function getSize() {
        return $this->size;
    }
}
